package com.fuqi.android.zhongcai.utils.funclass;

import android.os.CountDownTimer;

/**
 * Created by juner on 2015/12/14.
 */
public class MyCountDownTimer extends CountDownTimer {



    ICountDownTimer iCountDownTimer;

    public MyCountDownTimer(long millisInFuture, long countDownInterval, ICountDownTimer iCountDownTimer) {
        super(millisInFuture, countDownInterval);
        this.iCountDownTimer = iCountDownTimer;
    }

    @Override
    public void onFinish() {
        iCountDownTimer.onFinish();
    }

    @Override
    public void onTick(long millisUntilFinished) {
        iCountDownTimer.onTick();
    }


    public interface ICountDownTimer{

        public void onFinish();
        public void onTick();

    }


}
